home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / WebObjects / SourceCode / Create-A-Card / Application.wos next >
Text File  |  1996-01-25  |  961b  |  30 lines

  1. /*
  2.  *   Application.wos
  3.  *   You may freely copy, distribute, and reuse the code in this example.
  4.  *   NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  5.  *   fitness for any particular use.
  6.  *    
  7.  *     Written by Katie McCormick
  8.  *
  9.  *   This application lets you create a custom birthday card. When you enter
  10.  *   the name and age of a recipient and click submit, the application
  11.  *   returns a page with a birthday greeting. The application maintains a
  12.  *   global variable namesArray that contains the names of all card 
  13.  *   recipients. When you click the Show all recipients button, the
  14.  *   application returns a page listing all of the recipients across all
  15.  *   sessions.
  16.  *
  17.  */
  18.  
  19.  
  20. id namesArray;
  21.     // global variable containing the name of all of the card recipients
  22.  
  23. - awake {
  24.     // Obsolete sessions that have been inactive for more than 2 minutes 
  25.     [WOApp setSessionTimeOut:120];
  26.     namesArray = [NSMutableArray array];
  27. }
  28.  
  29.  
  30.